package ac.github.os.internal.core.config.type

import ac.github.os.internal.core.config.DataType
import ac.github.os.internal.session.Session
import org.bukkit.Sound
import taboolib.library.xseries.XSound
import java.util.*

class DataSound : DataType<Sound> {
    override fun toValue(string: String, session: Session): Sound? {
        return XSound.matchXSound(string.uppercase(Locale.getDefault())).get().parseSound()
    }
}